aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.tes...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-16 14:24:28 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-16 14:24:28 +0000
commit9458a3b5676bc78eac5807a878b9d8536035d6e2 (patch)
treef8b7f17f7253f92ebf3e5ee18df17e51f36b8a34 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent355a31d207a28d66a03351498fefe33b4c358c95 (diff)
Make closures GC objects
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected14
1 files changed, 7 insertions, 7 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 7a6007d0..57e4ffa0 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -24,8 +24,8 @@ Compilation unit elements:
memory-load
(local "effectHandler__1")
pointer=(local "closurePointer__0")
- layout=(struct (function-ptr (struct (data-ptr)) (struct ())))
- offset=(1 0)
+ layout=(struct (data-ptr (struct (function-ptr (struct (data-ptr)) (struct ())))))
+ offset=(1 1 0)
)
(call _ "shed__runtime__effects_set_handler" ((local "effectHandler__1")))
(local-store (local "tmp__0") (int 0))
@@ -42,20 +42,20 @@ Locals:
Instructions:
(
- (alloc-heap (local "closurePointer__f__0") (struct (function-ptr (struct (data-ptr)) (struct ()))))
+ (alloc-heap (local "closurePointer__f__0") (struct (data-ptr (struct (function-ptr (struct (data-ptr)) (struct ()))))))
(
memory-store
pointer=(local "closurePointer__f__0")
- layout=(struct (function-ptr (struct (data-ptr)) (struct ())))
- offset=(0)
+ layout=(struct (data-ptr (struct (function-ptr (struct (data-ptr)) (struct ())))))
+ offset=(1 0)
value=(function-ptr "shed__effectHandlerMethod__f__0")
)
(call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ())
(
memory-store
pointer=(local "closurePointer__f__0")
- layout=(struct (function-ptr (struct (data-ptr)) (struct ())))
- offset=(1 0)
+ layout=(struct (data-ptr (struct (function-ptr (struct (data-ptr)) (struct ())))))
+ offset=(1 1 0)
value=(local "effectHandlerCurrent__0")
)
(data-ptr-to-int (local "closure__f__0") (local "closurePointer__f__0"))